<?php
# Template for Nuked-Klan CMS version 1.7.9

defined('INDEX_CHECK') or die ('<div style="text-align: center">Action non-autorisÃƒÂ©e !</div>');

function top()
{
    global $nuked, $user, $config;
?>
<!DOCTYPE html>
<html lang="fr">
<head>
	<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
	<meta name="author" content="Design & code by LoveForEver" />
	<title><?php echo $nuked['name'] . ' - ' . $nuked['slogan']; ?></title>
	<meta name="description" content="<?php echo $nuked['description']; ?>" />
	<meta name="keywords" content="<?php echo $nuked['keyword']; ?>" />
	<meta name="robots" content="index, follow" />
	<link href="images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
	<link href="themes/newproject/style.css" media="all" type="text/css" rel="stylesheet" />
	<link rel="stylesheet" href="themes/newproject/default/default.css" type="text/css" media="screen" />
</head>
<body>
	<div id="top">
			<div id="sitename">
				<div id="welcome"><span style="color:#1c5b86;">>></span> Bienvenue sur Love-Gaming</div>
				<?php
				if ($online != 'off'){
		if ($c > 0) $blok['content'] .= '<hr style="height: 1px;" />'."\n";

    	$blok['content'] .= '&nbsp;<img width="16" height="13" src="images/online.gif" alt="" />&nbsp;<span style="text-decoration: underline"><b>' . _WHOISONLINE . '</b></span><br />'."\n";

    	$nb = nbvisiteur();

    	if ($nb[1] > 0){
			$sql4 = mysql_query('SELECT username FROM ' . NBCONNECTE_TABLE . ' WHERE type BETWEEN 1 AND 2 ORDER BY date');
			while (list($nom) = mysql_fetch_array($sql4)){
				   $user_online .= '&nbsp;<b><big>·</big></b>&nbsp;<b>' . $nom . '</b><br />';
			}
	
			$user_list = '&nbsp;[<a href="#" onmouseover="AffBulle(\'&nbsp;&nbsp;' . _WHOISONLINE . '\', \'' . htmlentities(mysql_real_escape_string($user_online), ENT_NOQUOTES) . '\', 150)" onmouseout="HideBulle()">' . _LIST . '</a>]';
			}
    	else{
			$user_list = '';
    	}

		if ($nb[2] > 0){
			$sql5 = mysql_query('SELECT username FROM ' . NBCONNECTE_TABLE . ' WHERE type > 2 ORDER BY date');
			while (list($name) = mysql_fetch_array($sql5)){
				   $admin_online .= '&nbsp;<b><big>·</big></b>&nbsp;<b>' . $name . '</b><br />';
			}
	
			$admin_list = '&nbsp;[<a href="#" onmouseover="AffBulle(\'&nbsp;&nbsp;' . _WHOISONLINE . '\', \'' . htmlentities(mysql_real_escape_string($admin_online), ENT_NOQUOTES) . '\', 150)" onmouseout="HideBulle()">' . _LIST . '</a>]';
		}
		else{
			$admin_list = '';
		}
	
		$blok['content'] .= '&nbsp;<b><big>·</big></b>&nbsp;' . _VISITOR;
		if ($nb[0] > 1) $blok['content'] .= 's';
		$blok['content'] .= ' : <b>' . $nb[0] . '</b><br />&nbsp;<b><big>·</big></b>&nbsp;' . _MEMBER;
		if ($nb[1] > 1) $blok['content'] .= 's';
		$blok['content'] .= ' : <b>' . $nb[1] . '</b>' . $user_list . '<br />&nbsp;<b><big>·</big></b>&nbsp;' . _ADMIN;
		if ($nb[2] > 1) $blok['content'] .= 's';
		$blok['content'] .= ' : <b>' . $nb[2] . '</b>' . $admin_list . '<br />'."\n";
	
		$c++;
   }
?>
				<div id="connections">Visiteur: <?php echo $nb[0]; ?> || Membres: <?php echo $nb[1]; ?> || Admin: <?php echo $nb[2]; ?></div>
				<div class="clear"></div>
			</div>
	</div>
	<div id="site">
		<div id="header">
			<div id="logo"><img src="themes/newproject/images/blason.png" alt="" /></div>
			<div id="userpanel" class="radius">
				<div id="userpanelcontent">
					<div id="userp">
					<p>Userpanel</p>
					<?php include(dirname(__FILE__) . '/inc/login.php'); ?>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		
		<div class="nav">
			<ul id="css3menu1" class="topmenu">
				<li class="topfirst"><a href="index.php" title="Home" style="width:135px;height:16px;line-height:16px;">Home</a>
						<ul>
							<li><a href="#">test</a></li>
							<li><a href="#">test</a></li>
						</ul>
				</li>
				<li class="topmenu"><a href="index.php?file=Sections" style="width:135px;height:16px;line-height:16px;">Articles</a></li>
				<li class="topmenu"><a href="index.php?file=Membres" style="width:135px;height:16px;line-height:16px;">Members</a></li>
				<li class="topmenu"><a href="index.php?file=Download" style="width:135px;height:16px;line-height:16px;">Downloads</a></li>
				<li class="topmenu"><a href="index.php?file=Contact" style="width:135px;height:16px;line-height:16px;">Contact</a></li>
				<li class="toplast"><a href="index.php?file=Forum" style="width:134px;height:16px;line-height:16px;">Forum</a></li>
			</ul>
		</div>
		<div class="clear"></div>
		<div id="page">		
<?php
    if($_REQUEST['file'] != 'Forum')
	{
        echo '<div id="center">
				<div id="centerc">';
    }
	else
	{
        echo '<div id="full">
				<div id="centerc">';
    }
}
function footer()
{
global $nuked, $user;
    if($_REQUEST['file'] != 'Forum')
	{
	    echo '</div>';
	}
?>	
				<div id="footer"><span>Design and code by Love-design &copy;</span></div>
			</div>
			<?php if($_REQUEST['file'] != 'Forum') { ?>
			<div id="droite">
				<div id="droitec">
					<div class="titred"><span style="color:#1c5b86;">>> </span>Movie</div>
					<script type='text/javascript' src='themes/newproject/player/jwplayer.js'></script>

					<div id='mediaplayer'></div>

					<script type="text/javascript">
					  jwplayer('mediaplayer').setup({
						'flashplayer': 'themes/newproject/player/player.swf',
						'id': 'playerID',
						'width': '366',
						'file': 'http://www.youtube.com/watch?v=6umzWF8pbL8',
					  });
					</script>
					<?php get_blok('droite'); ?>
				</div>
			</div>
			<?php } ?>
		</div>
	</div>

<?php 
exit;
}
function news($data)
{
global $nuked;
$s = $data['nb_comment'] > 1 ? 's' : '';
$comment = '<a class="comments" href="index.php?file=News&amp;op=index_comment&amp;news_id=' . $data['id'] . '">' . $data['nb_comment'] . ' commentaire' . $s . '</a>';
?>
<div class="titren"><div class="borderl"><?php echo $data['titre']; ?></div></div>
<div class="creditsc"><?php echo $data['date']; ?></div>
<div class="contentc"><?php echo $data['texte']; ?></div>
<div class="comment radius"><?php echo $comment; ?></div>
<?php
}
function block_droite($block)
{
?>
<h3 class="titred"><span style="color:#1c5b86;">>> </span><?php echo $block['titre']; ?></h3>
<?php echo $block['content']; ?>
<?php
}
function opentable(){}
function closetable(){}
?>